// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-vo.ts.hbs生成
import { ControlVOBase } from '@/core';
import { transformValue } from '@/utils';
import { model } from './form-40-form-model';

export class FormControlVO extends ControlVOBase {
    constructor(data: any) {
        //  表单预置字段
        data.srfwfmemo = data['srfwfmemo'] ? data['srfwfmemo'] : '';
        data.srffrontuf = data['srffrontuf'] ? data['srffrontuf'] : '';
        super(data);
        //  表单自持属性
        this.$ownKeys = ['srfupdatedate', 'srforikey', 'srfkey', 'srfmajortext', 'srftempmode', 'srfuf', 'srfdeid', 'srfsourcekey', 'srfip_amount', 'orderuid', 'ibizordername', 'ordertime', 'ibizcustomername', 'ordertype', 'amount', 'detailnum', 'orderstate', 'ibizorderid', 'memo', 'ibizcustomerid'];
    }
    get srfupdatedate() {
        return this.$DO.updatedate;
    }
    set srfupdatedate(value: any) {
        this.$DO.updatedate = value;
    }
    get srfkey() {
        return this.$DO.ibizorderid;
    }
    set srfkey(value: any) {
        this.$DO.ibizorderid = value;
    }
    get srfmajortext() {
        return this.$DO.ibizordername;
    }
    set srfmajortext(value: any) {
        this.$DO.ibizordername = value;
    }
    get orderuid() {
        return this.$DO.orderuid;
    }
    set orderuid(value: any) {
        this.$DO.orderuid = value;
    }
    get ibizordername() {
        return this.$DO.ibizordername;
    }
    set ibizordername(value: any) {
        this.$DO.ibizordername = value;
    }
    get ordertime() {
        return this.$DO.ordertime;
    }
    set ordertime(value: any) {
        this.$DO.ordertime = value;
    }
    get ibizcustomername() {
        return this.$DO.ibizcustomername;
    }
    set ibizcustomername(value: any) {
        this.$DO.ibizcustomername = value;
    }
    get ordertype() {
        return this.$DO.ordertype;
    }
    set ordertype(value: any) {
        this.$DO.ordertype = value;
    }
    get amount() {
        return this.$DO.amount;
    }
    set amount(value: any) {
        this.$DO.amount = value;
    }
    get detailnum() {
        return this.$DO.detailnum;
    }
    set detailnum(value: any) {
        this.$DO.detailnum = value;
    }
    get orderstate() {
        return this.$DO.orderstate;
    }
    set orderstate(value: any) {
        this.$DO.orderstate = value;
    }
    get ibizorderid() {
        return this.$DO.ibizorderid;
    }
    set ibizorderid(value: any) {
        this.$DO.ibizorderid = value;
    }
    get memo() {
        return this.$DO.memo;
    }
    set memo(value: any) {
        this.$DO.memo = value;
    }
    get ibizcustomerid() {
        return this.$DO.ibizcustomerid;
    }
    set ibizcustomerid(value: any) {
        this.$DO.ibizcustomerid = value;
    }
    // 界面主键标识
    get ibizorder() {
        return this.$DO.ibizorderid;
    }

    set ibizorder(value: any) {
        this.$DO.ibizorderid = value;
    }

    //  工作流预置字段
    srfwfmemo: any;
    srffrontuf: any;

    //  无实体属性表单项
    get srftempmode() {
        return this.$DO.srftempmode;
    }

    set srftempmode(value: any) {
        this.$DO.srftempmode = value;
    }
    get srfip_amount() {
        return this.$DO.srfip_amount;
    }

    set srfip_amount(value: any) {
        this.$DO.srfip_amount = value;
    }

    //  表单重复器

    /**
     * 返回后台数据
     *
     * @return {*} 
     * @memberof FormControlVO
     */
	public getDo() {
        return {
            srffrontuf: this.srffrontuf,
            orderuid: this.$DO.orderuid,
ibizordername: this.$DO.ibizordername,
ordertime: this.$DO.ordertime,
ibizcustomername: this.$DO.ibizcustomername,
ordertype: this.$DO.ordertype,
amount: this.$DO.amount,
detailnum: this.$DO.detailnum,
orderstate: this.$DO.orderstate,
ibizorderid: this.$DO.ibizorderid,
memo: this.$DO.memo,
updatedate: this.$DO.updatedate,
        }
	}

}